package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.github.talelin.latticy.dto.accept.CreateOrUpdateAcceptDTO;
import io.github.talelin.latticy.model.AcceptDO;
import java.util.List;
import java.util.Map;

/**
* @author vvboy
*/
public interface AcceptService {

    boolean createAccept(CreateOrUpdateAcceptDTO validator);
    boolean updateAccept(AcceptDO AcceptService, CreateOrUpdateAcceptDTO validator);
    AcceptDO getById(Integer id);
    List<AcceptDO> findAll();
    boolean deleteById(Integer id);

    List<AcceptDO> query(QueryWrapper<AcceptDO> queryWrapper);

    List<String> statCurMonth();
    List<String> statLastMonth();

    List<Integer> statCurRatio();

    List<String> statCurYear();
}
